package com.hzit.bj1804.dianordermanagementwutongservice.service;


import com.github.pagehelper.PageInfo;
import com.hzit.bj1804.dian.entity.Orderinfo;
import com.hzit.bj1804.dian.entity.Productinfo;
import com.hzit.bj1804.dian.vo.OrderdetailsOrderinfoProductinfo;
import com.hzit.bj1804.dian.vo.OrderinfoMemberpay;
import com.hzit.bj1804.dian.vo.PageRequest;

import java.util.Date;
import java.util.List;


public interface OrderManagementService {
    //显示所有订单表中的订单数据，分页查询
    PageInfo<OrderdetailsOrderinfoProductinfo> selectAlls(PageRequest pageRequest);
    //根据id查询订单所有信息
    PageInfo<OrderdetailsOrderinfoProductinfo> selectByIdAlls(PageRequest pageRequest,int id);

    //下单时间查询订单
    PageInfo<Orderinfo> selectTimes(PageRequest pageRequest,Date ordertime);
    //根据会员名称搜索订单
    List<OrderinfoMemberpay> selectCardholdername(String cardholdername);

    //修改订单状态
    int updatestatues(Orderinfo orderinfo);
    //根据id查询商品信息
    Productinfo selectshangping(int productid);
    //查询所有商品信息
    List<Productinfo> selectAlls();
}
